﻿using System.Collections.Generic;

namespace WpfAdmin.Everything.Queryable {
    internal class LogicalQuery : Query {
        private readonly string logicalOperator;

        public LogicalQuery(IQueryGenerator parent, string logicalOperator)
            : base(parent) {
            this.logicalOperator = logicalOperator;
        }

        public override IEnumerable<string> GetQueryParts() {
            List<string> query = new List<string>();
            query.AddRange(base.GetQueryParts());
            query.Add(this.logicalOperator);
            return query;
        }
    }
}
